#pragma once
#include "afxdialogex.h"
#include "CCboxListCtrl.h"

// CCard dialog
typedef struct rom_info_te {
	void* pbuf;
	HANDLE hFile;
	HANDLE hFileMap;

}ROM_INFO_T, * PROM_INFO_T;

class CCard : public CDialogEx
{
	DECLARE_DYNAMIC(CCard)

public:
	CCard(CWnd* pParent = nullptr);   // standard constructor
	virtual ~CCard();

// Dialog Data
#ifdef AFX_DESIGN_TIME
#endif
	enum { IDD = IDD_CARD_TRANSATION };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	int importCsv(const char* fname);
	BOOL m_cardInd;

	DECLARE_MESSAGE_MAP()
public:
	CString m_sCsvPath;
	afx_msg void OnBnClickedBtnCsv();
	CListCtrl m_listCards;
	CImageList m_checkImgList;
	void indCardSaved();
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnBnClickedBtnTrans();
	afx_msg void OnItemchangedList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnItemclickCardList(NMHDR* pNMHDR, LRESULT* pResult);
	CProgressCtrl m_progress;
	afx_msg void OnDestroy();
};
